import request from '@/utils/request'

// 权限列表
export const getPermissionListAPI = () => request.get('/sys/permission')

// 新增权限
export const addPermissionAPI = (data) => request.post('/sys/permission', data)

// 删除权限

export const delPermissionAPI = id => request.delete(`/sys/permission/${id}`)

// 获取权限详情

export const getPermissionDetailAPI = id => request.get(`/sys/permission/${id}`)

// 更新权限

export const updatePermissionAPI = data => request.put(`/sys/permission/${data.id}`, data)
